package com.ylstm.service.impl;

import com.ylstm.mapper.SessionMapper;
import com.ylstm.pojo.StmSession;
import com.ylstm.service.StmSessionService;
import com.ylstm.utils.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName StmSessionService
 * @Description TODO
 * @date 2022/8/1 19:57
 * @Version 1.0
 */
@Service
public class StmSessionServiceImpl implements StmSessionService {
    @Autowired
    SessionMapper sessionMapper;
    /*查询场次*/
    @Override
    public ResultMessage selectSession() {
        List<StmSession> list = sessionMapper.selectSession();
        if (list!=null){
            ResultMessage resultMessage = new ResultMessage();
            resultMessage.setData(list);
            return resultMessage;
        }
        return null;


    }
}
